package com.tempjob.common.businesss.mongo.entity;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 工作档案记录
 *
 * @author hui
 * @Date 2024/11/4 15:58
 **/
@CollectionName(value = "personal_work_record")
@Data
public class PersonalWorkRecord {

    @ID(type = IdTypeEnum.OBJECT_ID)
    @CollectionField("_id")
    @ApiModelProperty("id")
    private String id;

    @CollectionField("user_id")
    @ApiModelProperty("用户id")
    private String userId;

    @CollectionField("work_unit")
    @ApiModelProperty("工作单位")
    private String workUnit;

    @CollectionField("hire_date")
    @ApiModelProperty("入职日期")
    private Date hireDate;

    @CollectionField("leave_date")
    @ApiModelProperty("离职日期")
    private Date leaveDate;

    @CollectionField("department")
    @ApiModelProperty("部门")
    private String department;

    @CollectionField("position")
    @ApiModelProperty("职位")
    private String position;

    @CollectionField("remarks")
    @ApiModelProperty("备注信息")
    private String remarks;

    @CollectionField("work_location")
    @ApiModelProperty("工作地点")
    private String workLocation;

    @CollectionField("work_nature")
    @ApiModelProperty("工作性质")
    private String workNature;

    @CollectionField("reference")
    @ApiModelProperty("证明人")
    private String reference;

    @CollectionField("reference_phone")
    @ApiModelProperty("证明人电话")
    private String referencePhone;

}
